package com.hxrfid.system.domain.bo;

import com.hxrfid.common.core.domain.BaseEntity;
import com.hxrfid.common.core.validate.AddGroup;
import com.hxrfid.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 租户信息业务对象
 *
 * @author hxrfid
 * @date 2022-11-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SysTenantTempBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 租户编码
     */
    private Long tenantId;

    /**
     * 模板ID
     */
    @NotNull(message = "模板ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tempId;

    /**
     * 租户编码
     */
    private List<Long> tenantIdList;

}
